package cn;

import cn.webrx.config.DruidConfig;
import cn.webrx.config.SpringConfig;
import cn.webrx.mapper.DbMapper;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;
import javax.annotation.Resources;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {DruidConfig.class, SpringConfig.class})
@Slf4j
public class Demo {
    @Resource
    private DbMapper dm;
    @Test
    public void t1(){
        System.out.println(dm.dbs());
        log.info("{}",dm.dbs());
    }
}
